package link.jfire.jnet.common.exception;

public class ConnectErrorException extends SocketException
{
    private String msg;
    
    public ConnectErrorException(String msg)
    {
        super(msg);
        this.msg = msg;
    }
    
    public ConnectErrorException(Exception e)
    {
        super("链接错误", e);
        msg = e.getMessage();
    }
    
    /**
     * 
     */
    private static final long serialVersionUID = -784568973292126605L;
    
    public String toString()
    {
        return msg;
    }
}
